package com.qhs.sys.service;

import com.qhs.framework.base.BaseService;
import com.qhs.framework.bean.DataTableView;
import com.qhs.framework.bean.PageView;
import com.qhs.sys.entity.SysUserInfo;

import java.util.List;

/**
 * 用户
 *
 * Created by xinchao on 2016/11/30 0030.
 */
public interface UserService extends BaseService<SysUserInfo>{

    /**
     * 根据登录账号获取用户信息
     *
     * @param username
     * @return
     */
     SysUserInfo findUserByName(String username);

    /**
     *
     * @param userInfo
     * @return
     */
     List<SysUserInfo> findUserByWhere(SysUserInfo userInfo);

     DataTableView<SysUserInfo> findUserPageList(SysUserInfo userInfo, PageView pageView);
    /**
     * 添加用户
     * @param sysUserInfo
     * @return
     */
 //   int insertUserInfo(SysUserInfo sysUserInfo);

    /**
     * 删除用户
     * @param userId
     * @return
     */
  //  int deleteByPrimaryKey(Long userId);

    /**
     * 根据id查询
     * @param userId
     * @return
     */
 //   SysUserInfo selectByPrimaryKey(Long userId);

    /**
     * 修改用户
     * @param record
     * @return
     */
 //   int updateUser(SysUserInfo record);



}
